package com.rdc.example.entity;

import java.time.LocalDateTime;

/**
 * @author duck
 */
public class User {//Integer

    private Integer         id;
    private String          userName;
    private String          email;
    private String          passwordHash;
    private Integer         status;
    private LocalDateTime   createdAt;
    private Integer         power;

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }



    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPasswordHash() {
        return passwordHash;
    }

    public void setPasswordHash(String passwordHash) {
        this.passwordHash = passwordHash;
    }

    public Integer getStatus() {return status;}

    public void setStatus(Integer status) {this.status = status;}

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", email='" + email + '\'' +
                ", passwordHash='" + passwordHash + '\'' +
                ", status=" + status +
                ", createdAt=" + createdAt +
                ", power=" + power +
                '}';
    }
}
